import { Controller, Get, Inject } from "@midwayjs/core";
import { HelloController } from "@/socket/control/hello.controller";
// import { MemoryCache } from "@/decorator/index";

@Controller("/4m")
export class HomeController {

    @Inject()
    helloController:HelloController
    // @MemoryCache("/4m/m", 1, 10)
    @Get("/m")
    async home(): Promise<string> {
        await this.helloController.sendMessage()
        return "Hello Midwayjs!";
    }
}
